﻿@using MvcSample.Models
@model BlogVm
@*
    For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
<form method="post" asp-action="create">
    <input asp-for="Blog.Name" class="form-control" />
    @for (int i = 0; i < Model.Hobbies.Count; i++)
    {
        <input asp-for="Hobbies[i]" class="form-control" />
    }
    <button class="btn btn-primary" type="submit">Submit</button>
</form>